import React from 'react';
import {StyleSheet, Text, View, FlatList, Dimensions} from 'react-native';
import VideoPlay from './videoPlay';


const data = [1, 2, 3, 4, 5];
const {height} = Dimensions.get('window');

const videoList = () => {
  return (
    <FlatList
      data={data}
      pagingEnabled={true}
      renderItem={() => {
        return (
          <View style={{height: height - 50}}>
            <VideoPlay />
          </View>
        );
      }}
      keyExtractor={(item, index) => index.toString()}
    />
  );
};

export default videoList;

const styles = StyleSheet.create({});
